$(document).ready(function(){
  $("#acheter").submit(function(event){
    event.preventDefault();
    var form_data = $("#acheter").serialize();
    
    $.post("include/acheter.php", form_data, function(data){
      console.log(data);
    }, "json");
    /*
    var form_data = $("#new_artist_form").serialize();
    console.log(form_data);
    $.post("include/new_artist.php", form_data, function(result){
       if(result["succes"]){
         console.log("artist ajouté");
       } else {
         console.log("error");
         console.log("motive: " + result["msg"]);
       }
     },"json");*/
  });
});
